package net.dopan.pigframe.user.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;
import java.io.Serializable;
import java.util.Date;


/**
 * @author wufeihong
 *  活动评论表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("activity_comment")
public class ActivityComment extends Model<ActivityComment> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "comment_id", type = IdType.AUTO)
  private long commentId;
  /**
   * 活动ID
   */
  @TableField("activity_id")
  private long activityId;
  /**
   * 评论时间
   */
  @TableField("comment_time")
  private Date commentTime;
  /**
   * 评论内容
   */
  @TableField("comment_msg")
  private String commentMsg;
  /**
   * 评论用户
   */
  @TableField("user_id")
  private long userId;

  @Override
  protected Serializable pkVal() {
    return this.commentId;
  }
}
